#!/usr/bin/env python

import dbus
import sys

if len(sys.argv) > 1:
    id = '"%s" is done.' % sys.argv[1]
else:
    id = 'Whatever it is, it\'s done.'

my_bus = dbus.SessionBus()
proxy = my_bus.get_object('org.freedesktop.Notifications', '/org/freedesktop/Notifications')
notifier = dbus.Interface(proxy, 'org.freedesktop.Notifications')
notifier.Notify('Notificator', 0, '/usr/share/icons/Tango/scalable/emotes/face-monkey.svg', 'Work done!', id, '', {}, 5000)

